package com.manshutingyu.system.domain;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author：yinyuxia
 * @Date：2025/3/31 17:27
 */
@TableName(value = "sys_post")
@Data
public class SysPost  implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 岗位ID
     */
    @Schema(description = "岗位ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 岗位编码
     */
    @Schema(description = "岗位编码")
    private String code;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String remark;


    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createBy;


    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private String updateBy;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date updateTime;

    /**
     * 启用状态，0:禁用 1:启用
     */
    @Schema(description = "启用状态，0:禁用 1:启用")
    private String status;

    /**
     * 删除状态，0未删除 1删除
     */
    @Schema(description = "删除状态，0:未删除 1:删除")
    @TableLogic
    private Integer delFlag;


}
